﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace ThreadSafeControls {
	public class ThreadSafeCheckBox : ThreadSafeControl<CheckBox> {
        
		public ThreadSafeCheckBox(CheckBox checkBox) : base(checkBox) { }
		
		public ContentAlignment CheckAlign {
			get { return ReturnAsync(c => c.CheckAlign); }
			set { UpdateAsync(c => c.CheckAlign = value); }
		}
		
		public bool Checked {
			get { return ReturnAsync(c => c.Checked); }
			set { UpdateAsync(c => c.Checked = value); }
		}
		
		public CheckState CheckState {
			get { return ReturnAsync(c => c.CheckState); }
			set { UpdateAsync(c => c.CheckState = value); }
		}
		
	}
}
